package com.briup.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.briup.reggie.common.R;
import com.briup.reggie.entity.ShoppingCart;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


public interface ShoppingCartService extends IService<ShoppingCart> {
    /**
     * 添加购物车功能
     * @param shoppingCart
     * @return
     */
    public ShoppingCart add(ShoppingCart shoppingCart);

    /**
     * 查询购物车数据
     * @return
     */
    public List<ShoppingCart> list();

    /**
     * 清空购物车
     * @return
     */
    public void clean();

    public ShoppingCart sub(ShoppingCart shoppingCart);
}
